package ta.example.vo;

import java.util.Date;

public class StockInfo
{
	private int id;
	private String title;
	private String author;
	private Date date;
	private Date lastUpdate;
	private String content;
	private String answerAuthor;
	private String answer = "";
	public StockInfo(int id, String title, String author, Date date, Date lastUpdate, String content, String
			answerAuthor, String answer)
	{
		this.id = id;
		this.title = title;
		this.author = author;
		this.date = date;
		this.lastUpdate = lastUpdate;
		this.content = content;
		this.answerAuthor = answerAuthor;
		this.answer = answer;
	}
	public StockInfo()
	{
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public Date getDate()
	{
		return date;
	}

	public Date getLastUpdate()
	{
		return lastUpdate;
	}

	public String getAnswer()
	{
		return answer;
	}

	public String getAnswerAuthor()
	{
		return answerAuthor;
	}

	public String getAuthor()
	{
		return author;
	}

	public String getContent()
	{
		return content;
	}

	public String getTitle()
	{
		return title;
	}

	public void setAnswer(String answer)
	{
		this.answer = answer;
	}

	public void setAnswerAuthor(String answerAuthor)
	{
		this.answerAuthor = answerAuthor;
	}

	public void setAuthor(String author)
	{
		this.author = author;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public void setDate(Date date)
	{
		this.date = date;
	}

	public void setLastUpdate(Date lastUpdate)
	{
		this.lastUpdate = lastUpdate;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	@Override
	public String toString()
	{
		String info = "";
		info = info + "id: " + this.id + "\n";
		info = info + "title: " + this.title + "\n";
		info = info + "author: " + this.author + "\n";
		info = info + "answer: " + this.answer + "\n";
		return info;
	}
}
